import request from '@/utils/request'
//统计车辆
export function StatisticalvehicleApi() {
    return request({
        url: '/count',
        method: 'GET',
    })
}
//获取车辆车次信息
export function StatisticlistApi(page, pageSize) {
    return request({
        url: '/truck/page',
        method: 'GET',
        params: {
            page,
            pageSize
        }
    })
}
//添加车辆
export function addStatisticlistApi(data) {
    return request({
        url: '/truck',
        method: 'POST',
        data

    })
}
//获取车辆详情
export function VehicledetailsApi(id) {
    return request({
        url: `/truck/${id}`,
        method: 'GET',
    })
}
//获取车辆行驶证信息
export function VehiilstApi(id) {
    return request({
        url: `/truck/${id}/license`,
        method: 'GET',
    })
}